package com.endurance.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ProjectName: spring-cloud-hoxton-parent
 * @Package: com.endurance.controller
 * @ClassName: ProductsController
 * @Description:
 * @Author: sunlin
 * @CreateDate: 2024/02/05 09:00
 * @Version: 1.0
 */

@RestController
@RequestMapping("/products")
public class ProductsController {

    @Value("${server.port}")
    private String port;

    @GetMapping
    public String product() {
        System.out.println("商品接口");
        return "products-ok:" + port;
    }

}
